#
#
#

find_package(Qt4 REQUIRED)

include(${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(".")

set(XLISPQT_SRC
	main.cpp
	xlispqt.cpp
	xlispplaintextedit.cpp
	xlispp.cpp
)

set(XLISPQT_INC
	xlispqt.h
	xlispplaintextedit.h
	xlispp.h
)

set(XLISPQT_UI
	xlispqt.ui
	xlispplaintextedit.ui
)

qt4_wrap_cpp(XLISPQT_INC_MOC ${XLISPQT_INC})
qt4_wrap_ui(XLISPQT_UI_MOC ${XLISPQT_UI})

add_executable(xlispqt ${XLISPQT_SRC} ${XLISPQT_UI} ${XLISPQT_INC} ${XLISPQT_UI_MOC} ${XLISPQT_INC_MOC})
target_link_libraries(xlispqt xlispcore ${QT_LIBRARIES})

source_group("Generated Files" FILES ${XLISPQT_UI_MOC} ${XLISPQT_INC_MOC})
source_group("Ui Files" FILES ${XLISPQT_UI})
set_property(TARGET xlispqt PROPERTY FOLDER "exec")
